package com.woniuxy.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("拍卖房间信息")
public class RoomDto {
    @NotNull(message = "保证金比例不能为空！")
    @ApiModelProperty("保证金比例")
    private Integer depositrate;
    @NotNull(message = "起拍价格不能为空！")
    @ApiModelProperty("起拍价格")
    private BigDecimal startprice;
    @NotNull(message = "最低加价金额不能为空！")
    @ApiModelProperty("最低加价金额")
    private Integer stepprice;
    @ApiModelProperty("当前最高出价")
    private BigDecimal currprice;
    @ApiModelProperty("最高出价用户id")
    private Integer ownerid;
    @ApiModelProperty("起拍时间")
    @NotNull(message = "起拍时间不能为空！")

    private Date startdate;
    @ApiModelProperty("拍卖结束时间")
    @NotNull(message = "拍卖结束时间不能为空！")

    private Date enddate;
    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空！")

    private Integer productid;
    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空！")

    private String productname;

    private Integer status;
}
